package com.link.base.base.servicerequest.dao.mybatis.mapper;

import com.link.base.base.servicerequest.model.ServiceRequest;
import com.link.core.basic.dao.mapper.BasicMapper;

import java.util.List;

/**
 * @author unknown
 * @date unknown
 * @comments 服务请求
 */
public interface ServiceRequestMapper extends BasicMapper<ServiceRequest> {
    /**
     * 查询某段时间内的服务请求
     * @param entity
     * @return 服务请求列表
     * @throws Exception
     */
    public List<ServiceRequest> queryByTempPage(ServiceRequest entity) throws Exception;

    /**
     * 查询服务请求
     * @param entity
     * @return 服务请求
     * @throws Exception
     */
    public ServiceRequest queryByServiceRequestId(ServiceRequest entity) throws Exception;

    /**
     * 新建一条数据
     *
     * @param entity
     * @throws Exception
     */
    public void serviceRequestInsert(ServiceRequest entity) throws Exception;

    /**
     * 更新一条数据
     *
     * @param entity
     * @throws Exception
     */
    public void serviceRequestUpdate(ServiceRequest entity) throws Exception;

    /**
     * 新建一条数据
     *
     * @param entity
     * @throws Exception
     */
    public void newRecord(ServiceRequest entity) throws Exception;



}
